package com.amigo.online.message.mybatisbean;

import java.io.Serializable;

/**
 * @author 
 */
public class GroupMessageTbl implements Serializable {
    private Long id;

    private Long from_uid;

    private Long to_gid;

    private String from_nickname;

    private String from_avatar;

    private String msg_id;

    private Byte type;

    private Long created_time;

    private String longitude;

    private String latitude;

    private String prev_msg_id;

    private Boolean deleted;

    private String content;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getFrom_uid() {
        return from_uid;
    }

    public void setFrom_uid(Long from_uid) {
        this.from_uid = from_uid;
    }

    public Long getTo_gid() {
        return to_gid;
    }

    public void setTo_gid(Long to_gid) {
        this.to_gid = to_gid;
    }

    public String getFrom_nickname() {
        return from_nickname;
    }

    public void setFrom_nickname(String from_nickname) {
        this.from_nickname = from_nickname;
    }

    public String getFrom_avatar() {
        return from_avatar;
    }

    public void setFrom_avatar(String from_avatar) {
        this.from_avatar = from_avatar;
    }

    public String getMsg_id() {
        return msg_id;
    }

    public void setMsg_id(String msg_id) {
        this.msg_id = msg_id;
    }

    public Byte getType() {
        return type;
    }

    public void setType(Byte type) {
        this.type = type;
    }

    public Long getCreated_time() {
        return created_time;
    }

    public void setCreated_time(Long created_time) {
        this.created_time = created_time;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getPrev_msg_id() {
        return prev_msg_id;
    }

    public void setPrev_msg_id(String prev_msg_id) {
        this.prev_msg_id = prev_msg_id;
    }

    public Boolean getDeleted() {
        return deleted;
    }

    public void setDeleted(Boolean deleted) {
        this.deleted = deleted;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        GroupMessageTbl other = (GroupMessageTbl) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getFrom_uid() == null ? other.getFrom_uid() == null : this.getFrom_uid().equals(other.getFrom_uid()))
            && (this.getTo_gid() == null ? other.getTo_gid() == null : this.getTo_gid().equals(other.getTo_gid()))
            && (this.getFrom_nickname() == null ? other.getFrom_nickname() == null : this.getFrom_nickname().equals(other.getFrom_nickname()))
            && (this.getFrom_avatar() == null ? other.getFrom_avatar() == null : this.getFrom_avatar().equals(other.getFrom_avatar()))
            && (this.getMsg_id() == null ? other.getMsg_id() == null : this.getMsg_id().equals(other.getMsg_id()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getCreated_time() == null ? other.getCreated_time() == null : this.getCreated_time().equals(other.getCreated_time()))
            && (this.getLongitude() == null ? other.getLongitude() == null : this.getLongitude().equals(other.getLongitude()))
            && (this.getLatitude() == null ? other.getLatitude() == null : this.getLatitude().equals(other.getLatitude()))
            && (this.getPrev_msg_id() == null ? other.getPrev_msg_id() == null : this.getPrev_msg_id().equals(other.getPrev_msg_id()))
            && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()))
            && (this.getContent() == null ? other.getContent() == null : this.getContent().equals(other.getContent()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getFrom_uid() == null) ? 0 : getFrom_uid().hashCode());
        result = prime * result + ((getTo_gid() == null) ? 0 : getTo_gid().hashCode());
        result = prime * result + ((getFrom_nickname() == null) ? 0 : getFrom_nickname().hashCode());
        result = prime * result + ((getFrom_avatar() == null) ? 0 : getFrom_avatar().hashCode());
        result = prime * result + ((getMsg_id() == null) ? 0 : getMsg_id().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getCreated_time() == null) ? 0 : getCreated_time().hashCode());
        result = prime * result + ((getLongitude() == null) ? 0 : getLongitude().hashCode());
        result = prime * result + ((getLatitude() == null) ? 0 : getLatitude().hashCode());
        result = prime * result + ((getPrev_msg_id() == null) ? 0 : getPrev_msg_id().hashCode());
        result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
        result = prime * result + ((getContent() == null) ? 0 : getContent().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", from_uid=").append(from_uid);
        sb.append(", to_gid=").append(to_gid);
        sb.append(", from_nickname=").append(from_nickname);
        sb.append(", from_avatar=").append(from_avatar);
        sb.append(", msg_id=").append(msg_id);
        sb.append(", type=").append(type);
        sb.append(", created_time=").append(created_time);
        sb.append(", longitude=").append(longitude);
        sb.append(", latitude=").append(latitude);
        sb.append(", prev_msg_id=").append(prev_msg_id);
        sb.append(", deleted=").append(deleted);
        sb.append(", content=").append(content);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}